package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ItcsTerminalLinksRgtExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public ItcsTerminalLinksRgtExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConnectIdIsNull() {
            addCriterion("connect_id is null");
            return (Criteria) this;
        }

        public Criteria andConnectIdIsNotNull() {
            addCriterion("connect_id is not null");
            return (Criteria) this;
        }

        public Criteria andConnectIdEqualTo(String value) {
            addCriterion("connect_id =", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdNotEqualTo(String value) {
            addCriterion("connect_id <>", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdGreaterThan(String value) {
            addCriterion("connect_id >", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdGreaterThanOrEqualTo(String value) {
            addCriterion("connect_id >=", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdLessThan(String value) {
            addCriterion("connect_id <", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdLessThanOrEqualTo(String value) {
            addCriterion("connect_id <=", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdLike(String value) {
            addCriterion("connect_id like", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdNotLike(String value) {
            addCriterion("connect_id not like", value, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdIn(List<String> values) {
            addCriterion("connect_id in", values, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdNotIn(List<String> values) {
            addCriterion("connect_id not in", values, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdBetween(String value1, String value2) {
            addCriterion("connect_id between", value1, value2, "connectId");
            return (Criteria) this;
        }

        public Criteria andConnectIdNotBetween(String value1, String value2) {
            addCriterion("connect_id not between", value1, value2, "connectId");
            return (Criteria) this;
        }

        public Criteria andTerminalNoIsNull() {
            addCriterion("terminal_no is null");
            return (Criteria) this;
        }

        public Criteria andTerminalNoIsNotNull() {
            addCriterion("terminal_no is not null");
            return (Criteria) this;
        }

        public Criteria andTerminalNoEqualTo(Long value) {
            addCriterion("terminal_no =", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoNotEqualTo(Long value) {
            addCriterion("terminal_no <>", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoGreaterThan(Long value) {
            addCriterion("terminal_no >", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoGreaterThanOrEqualTo(Long value) {
            addCriterion("terminal_no >=", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoLessThan(Long value) {
            addCriterion("terminal_no <", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoLessThanOrEqualTo(Long value) {
            addCriterion("terminal_no <=", value, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoIn(List<Long> values) {
            addCriterion("terminal_no in", values, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoNotIn(List<Long> values) {
            addCriterion("terminal_no not in", values, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoBetween(Long value1, Long value2) {
            addCriterion("terminal_no between", value1, value2, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andTerminalNoNotBetween(Long value1, Long value2) {
            addCriterion("terminal_no not between", value1, value2, "terminalNo");
            return (Criteria) this;
        }

        public Criteria andLinkTimeIsNull() {
            addCriterion("link_time is null");
            return (Criteria) this;
        }

        public Criteria andLinkTimeIsNotNull() {
            addCriterion("link_time is not null");
            return (Criteria) this;
        }

        public Criteria andLinkTimeEqualTo(Date value) {
            addCriterion("link_time =", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeNotEqualTo(Date value) {
            addCriterion("link_time <>", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeGreaterThan(Date value) {
            addCriterion("link_time >", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("link_time >=", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeLessThan(Date value) {
            addCriterion("link_time <", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeLessThanOrEqualTo(Date value) {
            addCriterion("link_time <=", value, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeIn(List<Date> values) {
            addCriterion("link_time in", values, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeNotIn(List<Date> values) {
            addCriterion("link_time not in", values, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeBetween(Date value1, Date value2) {
            addCriterion("link_time between", value1, value2, "linkTime");
            return (Criteria) this;
        }

        public Criteria andLinkTimeNotBetween(Date value1, Date value2) {
            addCriterion("link_time not between", value1, value2, "linkTime");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIsNull() {
            addCriterion("toll_road_id is null");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIsNotNull() {
            addCriterion("toll_road_id is not null");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdEqualTo(String value) {
            addCriterion("toll_road_id =", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotEqualTo(String value) {
            addCriterion("toll_road_id <>", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdGreaterThan(String value) {
            addCriterion("toll_road_id >", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdGreaterThanOrEqualTo(String value) {
            addCriterion("toll_road_id >=", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLessThan(String value) {
            addCriterion("toll_road_id <", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLessThanOrEqualTo(String value) {
            addCriterion("toll_road_id <=", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdLike(String value) {
            addCriterion("toll_road_id like", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotLike(String value) {
            addCriterion("toll_road_id not like", value, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdIn(List<String> values) {
            addCriterion("toll_road_id in", values, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotIn(List<String> values) {
            addCriterion("toll_road_id not in", values, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdBetween(String value1, String value2) {
            addCriterion("toll_road_id between", value1, value2, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andTollRoadIdNotBetween(String value1, String value2) {
            addCriterion("toll_road_id not between", value1, value2, "tollRoadId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdIsNull() {
            addCriterion("roadsection_id is null");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdIsNotNull() {
            addCriterion("roadsection_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdEqualTo(String value) {
            addCriterion("roadsection_id =", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotEqualTo(String value) {
            addCriterion("roadsection_id <>", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdGreaterThan(String value) {
            addCriterion("roadsection_id >", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdGreaterThanOrEqualTo(String value) {
            addCriterion("roadsection_id >=", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLessThan(String value) {
            addCriterion("roadsection_id <", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLessThanOrEqualTo(String value) {
            addCriterion("roadsection_id <=", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdLike(String value) {
            addCriterion("roadsection_id like", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotLike(String value) {
            addCriterion("roadsection_id not like", value, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdIn(List<String> values) {
            addCriterion("roadsection_id in", values, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotIn(List<String> values) {
            addCriterion("roadsection_id not in", values, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdBetween(String value1, String value2) {
            addCriterion("roadsection_id between", value1, value2, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andRoadsectionIdNotBetween(String value1, String value2) {
            addCriterion("roadsection_id not between", value1, value2, "roadsectionId");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNull() {
            addCriterion("station_id is null");
            return (Criteria) this;
        }

        public Criteria andStationIdIsNotNull() {
            addCriterion("station_id is not null");
            return (Criteria) this;
        }

        public Criteria andStationIdEqualTo(String value) {
            addCriterion("station_id =", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotEqualTo(String value) {
            addCriterion("station_id <>", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThan(String value) {
            addCriterion("station_id >", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdGreaterThanOrEqualTo(String value) {
            addCriterion("station_id >=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThan(String value) {
            addCriterion("station_id <", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLessThanOrEqualTo(String value) {
            addCriterion("station_id <=", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdLike(String value) {
            addCriterion("station_id like", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotLike(String value) {
            addCriterion("station_id not like", value, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdIn(List<String> values) {
            addCriterion("station_id in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotIn(List<String> values) {
            addCriterion("station_id not in", values, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdBetween(String value1, String value2) {
            addCriterion("station_id between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andStationIdNotBetween(String value1, String value2) {
            addCriterion("station_id not between", value1, value2, "stationId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIsNull() {
            addCriterion("toll_plaza_id is null");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIsNotNull() {
            addCriterion("toll_plaza_id is not null");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdEqualTo(String value) {
            addCriterion("toll_plaza_id =", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotEqualTo(String value) {
            addCriterion("toll_plaza_id <>", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdGreaterThan(String value) {
            addCriterion("toll_plaza_id >", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdGreaterThanOrEqualTo(String value) {
            addCriterion("toll_plaza_id >=", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLessThan(String value) {
            addCriterion("toll_plaza_id <", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLessThanOrEqualTo(String value) {
            addCriterion("toll_plaza_id <=", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLike(String value) {
            addCriterion("toll_plaza_id like", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotLike(String value) {
            addCriterion("toll_plaza_id not like", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIn(List<String> values) {
            addCriterion("toll_plaza_id in", values, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotIn(List<String> values) {
            addCriterion("toll_plaza_id not in", values, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdBetween(String value1, String value2) {
            addCriterion("toll_plaza_id between", value1, value2, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotBetween(String value1, String value2) {
            addCriterion("toll_plaza_id not between", value1, value2, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andLaneIdIsNull() {
            addCriterion("lane_id is null");
            return (Criteria) this;
        }

        public Criteria andLaneIdIsNotNull() {
            addCriterion("lane_id is not null");
            return (Criteria) this;
        }

        public Criteria andLaneIdEqualTo(String value) {
            addCriterion("lane_id =", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotEqualTo(String value) {
            addCriterion("lane_id <>", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdGreaterThan(String value) {
            addCriterion("lane_id >", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdGreaterThanOrEqualTo(String value) {
            addCriterion("lane_id >=", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLessThan(String value) {
            addCriterion("lane_id <", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLessThanOrEqualTo(String value) {
            addCriterion("lane_id <=", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLike(String value) {
            addCriterion("lane_id like", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotLike(String value) {
            addCriterion("lane_id not like", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdIn(List<String> values) {
            addCriterion("lane_id in", values, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotIn(List<String> values) {
            addCriterion("lane_id not in", values, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdBetween(String value1, String value2) {
            addCriterion("lane_id between", value1, value2, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotBetween(String value1, String value2) {
            addCriterion("lane_id not between", value1, value2, "laneId");
            return (Criteria) this;
        }

        public Criteria andTerminalIpIsNull() {
            addCriterion("terminal_ip is null");
            return (Criteria) this;
        }

        public Criteria andTerminalIpIsNotNull() {
            addCriterion("terminal_ip is not null");
            return (Criteria) this;
        }

        public Criteria andTerminalIpEqualTo(String value) {
            addCriterion("terminal_ip =", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpNotEqualTo(String value) {
            addCriterion("terminal_ip <>", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpGreaterThan(String value) {
            addCriterion("terminal_ip >", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpGreaterThanOrEqualTo(String value) {
            addCriterion("terminal_ip >=", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpLessThan(String value) {
            addCriterion("terminal_ip <", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpLessThanOrEqualTo(String value) {
            addCriterion("terminal_ip <=", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpLike(String value) {
            addCriterion("terminal_ip like", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpNotLike(String value) {
            addCriterion("terminal_ip not like", value, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpIn(List<String> values) {
            addCriterion("terminal_ip in", values, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpNotIn(List<String> values) {
            addCriterion("terminal_ip not in", values, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpBetween(String value1, String value2) {
            addCriterion("terminal_ip between", value1, value2, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalIpNotBetween(String value1, String value2) {
            addCriterion("terminal_ip not between", value1, value2, "terminalIp");
            return (Criteria) this;
        }

        public Criteria andTerminalMacIsNull() {
            addCriterion("terminal_mac is null");
            return (Criteria) this;
        }

        public Criteria andTerminalMacIsNotNull() {
            addCriterion("terminal_mac is not null");
            return (Criteria) this;
        }

        public Criteria andTerminalMacEqualTo(String value) {
            addCriterion("terminal_mac =", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacNotEqualTo(String value) {
            addCriterion("terminal_mac <>", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacGreaterThan(String value) {
            addCriterion("terminal_mac >", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacGreaterThanOrEqualTo(String value) {
            addCriterion("terminal_mac >=", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacLessThan(String value) {
            addCriterion("terminal_mac <", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacLessThanOrEqualTo(String value) {
            addCriterion("terminal_mac <=", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacLike(String value) {
            addCriterion("terminal_mac like", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacNotLike(String value) {
            addCriterion("terminal_mac not like", value, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacIn(List<String> values) {
            addCriterion("terminal_mac in", values, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacNotIn(List<String> values) {
            addCriterion("terminal_mac not in", values, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacBetween(String value1, String value2) {
            addCriterion("terminal_mac between", value1, value2, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andTerminalMacNotBetween(String value1, String value2) {
            addCriterion("terminal_mac not between", value1, value2, "terminalMac");
            return (Criteria) this;
        }

        public Criteria andLocalhostIsNull() {
            addCriterion("localhost is null");
            return (Criteria) this;
        }

        public Criteria andLocalhostIsNotNull() {
            addCriterion("localhost is not null");
            return (Criteria) this;
        }

        public Criteria andLocalhostEqualTo(String value) {
            addCriterion("localhost =", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostNotEqualTo(String value) {
            addCriterion("localhost <>", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostGreaterThan(String value) {
            addCriterion("localhost >", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostGreaterThanOrEqualTo(String value) {
            addCriterion("localhost >=", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostLessThan(String value) {
            addCriterion("localhost <", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostLessThanOrEqualTo(String value) {
            addCriterion("localhost <=", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostLike(String value) {
            addCriterion("localhost like", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostNotLike(String value) {
            addCriterion("localhost not like", value, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostIn(List<String> values) {
            addCriterion("localhost in", values, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostNotIn(List<String> values) {
            addCriterion("localhost not in", values, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostBetween(String value1, String value2) {
            addCriterion("localhost between", value1, value2, "localhost");
            return (Criteria) this;
        }

        public Criteria andLocalhostNotBetween(String value1, String value2) {
            addCriterion("localhost not between", value1, value2, "localhost");
            return (Criteria) this;
        }

        public Criteria andPortIsNull() {
            addCriterion("port is null");
            return (Criteria) this;
        }

        public Criteria andPortIsNotNull() {
            addCriterion("port is not null");
            return (Criteria) this;
        }

        public Criteria andPortEqualTo(String value) {
            addCriterion("port =", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotEqualTo(String value) {
            addCriterion("port <>", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortGreaterThan(String value) {
            addCriterion("port >", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortGreaterThanOrEqualTo(String value) {
            addCriterion("port >=", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortLessThan(String value) {
            addCriterion("port <", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortLessThanOrEqualTo(String value) {
            addCriterion("port <=", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortLike(String value) {
            addCriterion("port like", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotLike(String value) {
            addCriterion("port not like", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortIn(List<String> values) {
            addCriterion("port in", values, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotIn(List<String> values) {
            addCriterion("port not in", values, "port");
            return (Criteria) this;
        }

        public Criteria andPortBetween(String value1, String value2) {
            addCriterion("port between", value1, value2, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotBetween(String value1, String value2) {
            addCriterion("port not between", value1, value2, "port");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeIsNull() {
            addCriterion("link_hb_time is null");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeIsNotNull() {
            addCriterion("link_hb_time is not null");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeEqualTo(Date value) {
            addCriterion("link_hb_time =", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeNotEqualTo(Date value) {
            addCriterion("link_hb_time <>", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeGreaterThan(Date value) {
            addCriterion("link_hb_time >", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("link_hb_time >=", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeLessThan(Date value) {
            addCriterion("link_hb_time <", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeLessThanOrEqualTo(Date value) {
            addCriterion("link_hb_time <=", value, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeIn(List<Date> values) {
            addCriterion("link_hb_time in", values, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeNotIn(List<Date> values) {
            addCriterion("link_hb_time not in", values, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeBetween(Date value1, Date value2) {
            addCriterion("link_hb_time between", value1, value2, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andLinkHbTimeNotBetween(Date value1, Date value2) {
            addCriterion("link_hb_time not between", value1, value2, "linkHbTime");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusIsNull() {
            addCriterion("terminal_status is null");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusIsNotNull() {
            addCriterion("terminal_status is not null");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusEqualTo(Byte value) {
            addCriterion("terminal_status =", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusNotEqualTo(Byte value) {
            addCriterion("terminal_status <>", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusGreaterThan(Byte value) {
            addCriterion("terminal_status >", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("terminal_status >=", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusLessThan(Byte value) {
            addCriterion("terminal_status <", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusLessThanOrEqualTo(Byte value) {
            addCriterion("terminal_status <=", value, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusIn(List<Byte> values) {
            addCriterion("terminal_status in", values, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusNotIn(List<Byte> values) {
            addCriterion("terminal_status not in", values, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusBetween(Byte value1, Byte value2) {
            addCriterion("terminal_status between", value1, value2, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("terminal_status not between", value1, value2, "terminalStatus");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyIsNull() {
            addCriterion("terminal_key is null");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyIsNotNull() {
            addCriterion("terminal_key is not null");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyEqualTo(String value) {
            addCriterion("terminal_key =", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyNotEqualTo(String value) {
            addCriterion("terminal_key <>", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyGreaterThan(String value) {
            addCriterion("terminal_key >", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyGreaterThanOrEqualTo(String value) {
            addCriterion("terminal_key >=", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyLessThan(String value) {
            addCriterion("terminal_key <", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyLessThanOrEqualTo(String value) {
            addCriterion("terminal_key <=", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyLike(String value) {
            addCriterion("terminal_key like", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyNotLike(String value) {
            addCriterion("terminal_key not like", value, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyIn(List<String> values) {
            addCriterion("terminal_key in", values, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyNotIn(List<String> values) {
            addCriterion("terminal_key not in", values, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyBetween(String value1, String value2) {
            addCriterion("terminal_key between", value1, value2, "terminalKey");
            return (Criteria) this;
        }

        public Criteria andTerminalKeyNotBetween(String value1, String value2) {
            addCriterion("terminal_key not between", value1, value2, "terminalKey");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}